#!/bin/bash

# eg. sh sync.sh root@114.116.93.253

password=xxx
REMOTE=$1

sshpass -p $password rsync -arv --progress --exclude=log/* ./personalpage/* $REMOTE:/opt/app/boleixiongdi/personalpage/
sshpass -p $password rsync -arv --progress --exclude=log/* ./home/* $REMOTE:/opt/app/boleixiongdi/home/
sshpass -p $password rsync -arv --progress --exclude=log/* ./blog/build/* $REMOTE:/opt/app/boleixiongdi/blog/

echo done!